import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import set from '@dfeidao/atom-web/local/set';
import render from '@dfeidao/atom-web/render/render';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';
import p001 from './p001';

export default async function a001(fd: IFeidaoAiBrowserComponent, id: number) {
	// 编辑弹框
	set_node_cls(fd.data.node, 'display-n', false);
	const channel_id = id;
	set(fd, 'id', channel_id);
	// 下拉框选项
	const data = ['58同城1', '租客2', '内部推荐3'];
	fd.data.node.querySelector<HTMLInputElement>(
		'[id="channel_name"]'
	).value = '安居客';
	render(fd, data, p001, 'p001', 'inner');
}
